package com.hyl.vo;

import lombok.Data;

import java.util.Map;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/5/17 10:07
 **/
@Data
public class PageRequest {
	private Integer currentPage=1; //当前页
	private Integer offset;// 偏移量=》分页的limit数据
	private Integer showSize = 5;//每页显示的数量
	private Map<String,Object> params;// 参数

	public Integer getOffset() {
		offset = (currentPage - 1) * showSize;
		return offset;
	}
}
